package com.liull.spring_anno.config;

import com.liull.spring_anno.bean.Person;
import com.liull.spring_anno.component.Color;
import com.liull.spring_anno.selector.CustImportSelector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 23:08 2020/4/8
 * @Modified By:
 */
@Configuration
@Import({ Color.class, CustImportSelector.class })
public class PersonConfig {

    @Bean
    public Person person1() {
        return new Person("wjy", 19);
    }
}
